.class public Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;
.super Ljava/lang/Object;
.source "Codes.java"


# instance fields
.field private errors:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private unfreeze1:Ljava/lang/String;

.field private unfreeze2:Ljava/lang/String;

.field private unlock:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 18
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 12
    iput-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unlock:Ljava/lang/String;

    .line 13
    iput-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unfreeze1:Ljava/lang/String;

    .line 14
    iput-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unfreeze2:Ljava/lang/String;

    .line 16
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->errors:Ljava/util/List;

    .line 20
    return-void
.end method

.method public constructor <init>(Ljava/lang/String;)V
    .locals 9
    .parameter "data"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .prologue
    const/16 v7, 0x8

    const/4 v6, 0x1

    const/4 v4, 0x0

    const-string v8, "codes"

    .line 22
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 12
    iput-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unlock:Ljava/lang/String;

    .line 13
    iput-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unfreeze1:Ljava/lang/String;

    .line 14
    iput-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unfreeze2:Ljava/lang/String;

    .line 16
    new-instance v4, Ljava/util/LinkedList;

    invoke-direct {v4}, Ljava/util/LinkedList;-><init>()V

    iput-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->errors:Ljava/util/List;

    .line 24
    invoke-virtual {p1}, Ljava/lang/String;->toCharArray()[C

    move-result-object v0

    .line 25
    .local v0, charData:[C
    const/4 v1, 0x0

    .line 26
    .local v1, found:I
    const-string v3, ""

    .line 27
    .local v3, tmp:Ljava/lang/String;
    array-length v4, v0

    sub-int v2, v4, v6

    .local v2, index:I
    :goto_0
    if-gtz v2, :cond_0

    .line 52
    return-void

    .line 28
    :cond_0
    aget-char v4, v0, v2

    invoke-static {v4}, Ljava/lang/Character;->isDigit(C)Z

    move-result v4

    if-nez v4, :cond_1

    aget-char v4, v0, v2

    const/16 v5, 0x23

    if-ne v4, v5, :cond_2

    .line 29
    :cond_1
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-static {v3}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    aget-char v5, v0, v2

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 27
    :goto_1
    add-int/lit8 v2, v2, -0x1

    goto :goto_0

    .line 31
    :cond_2
    if-nez v1, :cond_4

    .line 32
    add-int/lit8 v1, v1, 0x1

    .line 44
    :cond_3
    :goto_2
    const-string v3, ""

    goto :goto_1

    .line 33
    :cond_4
    if-ne v1, v6, :cond_5

    iget-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unlock:Ljava/lang/String;

    if-nez v4, :cond_5

    .line 34
    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4, v3}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->reverse()Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    iput-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unlock:Ljava/lang/String;

    .line 35
    add-int/lit8 v1, v1, 0x1

    .line 36
    const-string v4, "codes"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "found unlock "

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v5, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unlock:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v8, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_2

    .line 37
    :cond_5
    const/4 v4, 0x2

    if-ne v1, v4, :cond_3

    iget-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unfreeze1:Ljava/lang/String;

    if-nez v4, :cond_3

    iget-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unfreeze2:Ljava/lang/String;

    if-nez v4, :cond_3

    .line 38
    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4, v3}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->reverse()Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    const/4 v5, 0x0

    invoke-virtual {v4, v5, v7}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    iput-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unfreeze1:Ljava/lang/String;

    .line 39
    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4, v3}, Ljava/lang/StringBuffer;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->reverse()Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    const/16 v5, 0x10

    invoke-virtual {v4, v7, v5}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v4

    iput-object v4, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unfreeze2:Ljava/lang/String;

    .line 40
    add-int/lit8 v1, v1, 0x1

    .line 41
    const-string v4, "codes"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "found unfreeze "

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v5, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unfreeze1:Ljava/lang/String;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v8, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_2
.end method

.method private testPadding(Ljava/lang/String;)Z
    .locals 6
    .parameter "data"

    .prologue
    const/4 v5, 0x0

    .line 75
    invoke-virtual {p1}, Ljava/lang/String;->toCharArray()[C

    move-result-object v1

    array-length v2, v1

    move v3, v5

    :goto_0
    if-lt v3, v2, :cond_0

    .line 79
    const/4 v1, 0x1

    :goto_1
    return v1

    .line 75
    :cond_0
    aget-char v0, v1, v3

    .line 76
    .local v0, c:C
    const/16 v4, 0x30

    if-eq v0, v4, :cond_1

    move v1, v5

    .line 77
    goto :goto_1

    .line 75
    :cond_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0
.end method

.method private testUnfreeze(Ljava/lang/String;)Z
    .locals 2
    .parameter "data"

    .prologue
    .line 90
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    const/16 v1, 0x10

    if-ne v0, v1, :cond_0

    .line 91
    const/4 v0, 0x1

    .line 93
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private testUnlock(Ljava/lang/String;)Z
    .locals 2
    .parameter "data"

    .prologue
    .line 83
    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v0

    const/16 v1, 0x8

    if-ne v0, v1, :cond_0

    .line 84
    const/4 v0, 0x1

    .line 86
    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method


# virtual methods
.method public addError(Ljava/lang/String;)V
    .locals 1
    .parameter "error"

    .prologue
    .line 71
    iget-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->errors:Ljava/util/List;

    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 72
    return-void
.end method

.method public getErrors()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation

    .prologue
    .line 67
    iget-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->errors:Ljava/util/List;

    return-object v0
.end method

.method public getUnfreeze1()Ljava/lang/String;
    .locals 1

    .prologue
    .line 59
    iget-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unfreeze1:Ljava/lang/String;

    return-object v0
.end method

.method public getUnfreeze2()Ljava/lang/String;
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unfreeze2:Ljava/lang/String;

    return-object v0
.end method

.method public getUnlock()Ljava/lang/String;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lcom/clarkehackworth/SamsungGalaxySUnlock/Codes;->unlock:Ljava/lang/String;

    return-object v0
.end method
